<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>Mac上搭建Hexo+Github博客 | 不忘初心</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="导语  为搭建Hexo博客,踩了不少的坑,终究是搭建成功了,记录一下.">
<meta property="og:type" content="article">
<meta property="og:title" content="Mac上搭建Hexo+Github博客">
<meta property="og:url" content="http://example.com/2013/01/17/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA--Mac%E4%B8%8A%E6%90%AD%E5%BB%BAHexo+Github%E5%8D%9A%E5%AE%A2/index.html">
<meta property="og:site_name" content="不忘初心">
<meta property="og:description" content="导语  为搭建Hexo博客,踩了不少的坑,终究是搭建成功了,记录一下.">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c1%20newrepository.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c1%20create%20a%20new%20repository.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c1%20cangku.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c1%20change%20theme.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c1%20wancheng.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c1%20custom%20domain.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c1%20custom%20saved.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c1%20aliyun.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c2%20locsalhost.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c2%20hexo%20jia.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c3%20cd%20jia.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c3%20config2.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/170929/1aG04j0kdG.jpg">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c3%20hexo%20g.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c3%20hexo%20d%20error.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c3%20github%20ssh.png">
<meta property="og:image" content="http://images.wxyass.com/wxyass/images/blog_c3%20hexo%20d.png">
<meta property="article:published_time" content="2013-01-17T06:59:42.000Z">
<meta property="article:modified_time" content="2017-09-29T09:16:47.000Z">
<meta property="article:author" content="wxyass">
<meta property="article:tag" content="博客搭建">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://images.wxyass.com/wxyass/images/blog_c1%20newrepository.png">
  
    <link rel="alternate" href="/atom.xml" title="不忘初心" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">

  
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">不忘初心</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://example.com"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-博客搭建/博客搭建--Mac上搭建Hexo+Github博客" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2013/01/17/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA--Mac%E4%B8%8A%E6%90%AD%E5%BB%BAHexo+Github%E5%8D%9A%E5%AE%A2/" class="article-date">
  <time class="dt-published" datetime="2013-01-17T06:59:42.000Z" itemprop="datePublished">2013-01-17</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/">博客搭建</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      Mac上搭建Hexo+Github博客
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h4 id="导语"><a href="#导语" class="headerlink" title="导语"></a>导语</h4><blockquote>
<p> 为搭建Hexo博客,踩了不少的坑,终究是搭建成功了,记录一下.</p>
</blockquote>
<span id="more"></span>

<blockquote>
<p>  之前买过香港主机,用wp建站,试过之后时不时会挂掉,咨询空间商,告诉说是主机IP受到大规模DDOS攻击,导致不能访问,往复几次,遂放弃.转向Github, 使用Github搭建博客也有好处,最直接的一点就是免费.话不多说,开始记录.  </p>
</blockquote>
<p>Mac上搭建基于GitHub的Hexo博客可<strong>分5步</strong>:  </p>
<ol>
<li><a href="#yi">搭建Github仓库及域名解析;</a>  </li>
<li><a href="#er">Hexo关联Github;</a>    </li>
<li><a href="#san">安装主题theme;</a>    </li>
<li><a href="#si">绑定个人域名;</a>    </li>
<li><a href="#wu">创建并发布博客文章;</a>    </li>
</ol>
<h4 id="一-搭建Github仓库及域名解析"><a href="#一-搭建Github仓库及域名解析" class="headerlink" title="一 搭建Github仓库及域名解析"></a>一 <a name="yi"></a>搭建Github仓库及域名解析</h4><ol>
<li><p>创建Github账号(<a target="_blank" rel="noopener" href="https://github.com/">Github官网</a>),一定要验证邮箱(<a target="_blank" rel="noopener" href="https://github.com/settings/emails">验证邮箱</a>)<br> (这是我新注册的Github账号  用户名:<code>ceshiblog</code>  密码:<code>y******84</code> 邮箱:<code>134****978@qq.com</code> )  </p>
</li>
<li><p>登录Github,右上角点+按钮,创建仓库New repository<br> <img src="http://images.wxyass.com/wxyass/images/blog_c1%20newrepository.png" alt="newrepository">  </p>
</li>
<li><p>进入Create a new repository页面,</p>
<ul>
<li>①输入Repository name,要注意格式:<code>你的github用户名.github.io</code>,比如:<code>ceshiblog.github.io</code>  </li>
<li>②输入Description描述,比如个人博客,对于描述随意填,也可以什么都不填,后面是可以改的,  </li>
<li>③选择public  </li>
<li>④点击 Create repository<br><img src="http://images.wxyass.com/wxyass/images/blog_c1%20create%20a%20new%20repository.png" alt="newrepository">  </li>
</ul>
</li>
<li><p>进入仓库页面 (<a target="_blank" rel="noopener" href="https://github.com/ceshiblog/ceshiblog.github.io">我的仓库页面</a>) ,点击<strong>setting</strong><br><img src="http://images.wxyass.com/wxyass/images/blog_c1%20cangku.png">  </p>
</li>
<li><p>向下滚动,点击<strong>Change theme</strong>(设置主题),在选择主题页面,随意选个就行<br> <img src="http://images.wxyass.com/wxyass/images/blog_c1%20change%20theme.png" alt="newrepository">  </p>
</li>
<li><p>主题选好后,稍等一分钟,等主题渲染完成,仓库建好了,对应的网站也就建好了 (<a target="_blank" rel="noopener" href="https://ceshiblog.github.io/">https://ceshiblog.github.io</a>)<br><img src="http://images.wxyass.com/wxyass/images/blog_c1%20wancheng.png" alt="newrepository"></p>
</li>
<li><p>绑定个人域名(关于域名的购买,自行百度,其实非常简单)(这一步可不做,就直接使用Github的二级域名就行)  </p>
<ul>
<li>在你创建完成Github仓库时,你就拥有了一个免费的Github二级域名,但现在我们不想通过这个二级域名<a target="_blank" rel="noopener" href="https://ceshiblog.github.io/">https://ceshiblog.github.io</a>去访问个人博客,而是想通过个人域名来访问自己的博客,比如作者的个人域名 <a target="_blank" rel="noopener" href="http://wxyass.com/">http://wxyass.com</a></li>
<li>下面详细步骤  <ul>
<li>① 进入仓库页面的设置(<strong>Settings</strong>)选项卡(<a target="_blank" rel="noopener" href="https://github.com/ceshiblog/ceshiblog.github.io">作者的仓库页面</a> )  </li>
<li>② 往下滑动,找到域名卡片(<strong>Custom domain</strong>),输入购买的域名(ceshiblog.xyz是作者在阿里云买的域名,第一年¥1元,续费每年¥69元,不续费不能用),然后保存<br><img src="http://images.wxyass.com/wxyass/images/blog_c1%20custom%20domain.png" alt="newrepository"></li>
<li>③ 保存成功的显示: Custom domain “ceshiblog.xyz” saved<br><img src="http://images.wxyass.com/wxyass/images/blog_c1%20custom%20saved.png" alt="newrepository"></li>
<li>④ 到域名商那里去域名解析(域名在哪里买的就到哪里去解析,作者去的是阿里云)<pre><code>  名词解释:
      域名解析: 通过域名查找IP地址并访问空间的过程叫做域名解析.  
       CNAME: 如果将域名指向一个域名，实现与被指向域名相同的访问效果，需要增加CNAME记录.  
          @ : 将域名解析为example.com（不带www），填写@或者不填写；  
        www : 将域名解析为www.example.com，填写www； 
</code></pre>
<img src="http://images.wxyass.com/wxyass/images/blog_c1%20aliyun.png" alt="newrepository"></li>
<li>⑤ 等待10分钟解析完成,就可以通过个人域名(<a target="_blank" rel="noopener" href="http://ceshiblog.xyz/">http://ceshiblog.xyz</a>)访问博客网站了</li>
</ul>
</li>
</ul>
</li>
<li><p>此时网站已经建好,个人域名也绑定完毕,现在手动备份一份代码(若没绑定个人域名,这一步可不做)<br> 因为在后面使用Hexo框架搭建博客时,初次部署会将个人域名覆盖掉,这里备份一下,后面重新上传就可以了<br> 打开仓库页面(<a target="_blank" rel="noopener" href="https://github.com/ceshiblog/ceshiblog.github.io">作者的仓库页面</a> ),<br> 点击右侧绿底<strong>Clone or download</strong>,点击<strong>download zip</strong>,将代码下载到本地电脑(有3个文件,CNAME _config.yml index.md),主要是CNAME文件,保存即可.  </p>
</li>
<li><p>建站整理<br> 仓库页面 : <a target="_blank" rel="noopener" href="https://github.com/ceshiblog/ceshiblog.github.io">https://github.com/ceshiblog/ceshiblog.github.io</a>   账号密码:github的登录账号<br> 个人博客:  <a target="_blank" rel="noopener" href="https://ceshiblog.github.io/">https://ceshiblog.github.io</a>(这是Github提供的免费二级域名) 或 <a target="_blank" rel="noopener" href="http://ceshiblog.xyz/">http://ceshiblog.xyz</a>(这是个人购买的域名,收费)  </p>
</li>
</ol>
<blockquote>
<p>以上是Github仓库的搭建,接下来是Hexo框架的使用,对于新手来说发布博客的操作越简单越好.<br>而作者觉得使用hexo写博客就很简单,请往下看</p>
</blockquote>
<h4 id="二-Hexo关联Github"><a href="#二-Hexo关联Github" class="headerlink" title="二 Hexo关联Github"></a><a name="er"></a>二 Hexo关联Github</h4><blockquote>
<p>上面成功搭建Github仓库, 接下来这一块主要讲: 在本地Mac上搭建Hexo环境,并关联Github.  </p>
<p>简单说: 通过Hexo在本地生成博客内容,再由hexo将内容提交的github上,最终形成相关博客</p>
<p>Hexo 是一个快速、简洁且高效的博客框架. <a target="_blank" rel="noopener" href="https://hexo.io/docs">Hexo官网文档</a><br>安装Hexo必须有两个先决条件  </p>
<ol>
<li><a target="_blank" rel="noopener" href="https://nodejs.org/en/">Node.js</a>的安装  </li>
<li><a target="_blank" rel="noopener" href="https://git-scm.com/">git</a>的安装  </li>
</ol>
</blockquote>
<h5 id="2-1-下载Node-js和git并安装"><a href="#2-1-下载Node-js和git并安装" class="headerlink" title="2.1 下载Node.js和git并安装"></a>2.1 下载Node.js和git并安装</h5><table>
<thead>
<tr>
<th align="left">软件</th>
<th align="left">下载地址</th>
<th align="left">解释</th>
</tr>
</thead>
<tbody><tr>
<td align="left">Node.js</td>
<td align="left"><a target="_blank" rel="noopener" href="https://nodejs.org/en/">https://nodejs.org/en/</a></td>
<td align="left">下载v6.9.2 LTS(当时最新) 一路安装即可</td>
</tr>
<tr>
<td align="left">git</td>
<td align="left"><a target="_blank" rel="noopener" href="https://git-scm.com/">https://git-scm.com</a></td>
<td align="left">或到<a target="_blank" rel="noopener" href="https://hexo.io/docs">Hexo官网文档</a>下载安装</td>
</tr>
</tbody></table>
<h5 id="2-2-安装Hexo-在mac终端命令行依次执行下面命令"><a href="#2-2-安装Hexo-在mac终端命令行依次执行下面命令" class="headerlink" title="2.2 安装Hexo,在mac终端命令行依次执行下面命令"></a>2.2 安装Hexo,在mac终端命令行依次执行下面命令</h5><table>
<thead>
<tr>
<th align="left">步骤</th>
<th align="left">命令</th>
<th align="left">解释</th>
</tr>
</thead>
<tbody><tr>
<td align="left">①</td>
<td align="left"><code>$ sudo npm install -g hexo</code></td>
<td align="left">打开终端,输入左侧命令,安装Hexo,需要输入管理员密码(Mac登录密码)</td>
</tr>
<tr>
<td align="left">同①</td>
<td align="left"><code>$ sudo npm install -g hexo-cli</code></td>
<td align="left">若上面命令出错的话,执行这一行命令(若正常,忽略此命令), 因为Hexo官网上的安装命令是$ npm install -g hexo-cli(这是在window上执行的命令), Mac安装时不要忘记前面加上sudo(如左)，否则会因为权限问题报错</td>
</tr>
</tbody></table>
<h5 id="2-3-初始化Hexo本地文件夹-在mac终端命令行依次执行下面命令"><a href="#2-3-初始化Hexo本地文件夹-在mac终端命令行依次执行下面命令" class="headerlink" title="2.3 初始化Hexo本地文件夹,在mac终端命令行依次执行下面命令"></a>2.3 初始化Hexo本地文件夹,在mac终端命令行依次执行下面命令</h5><table>
<thead>
<tr>
<th align="left">步骤</th>
<th align="left">命令</th>
<th align="left">解释</th>
</tr>
</thead>
<tbody><tr>
<td align="left">①</td>
<td align="left"><code>$ cd work/Blog</code></td>
<td align="left">终端cd到一个你选定的目录</td>
</tr>
<tr>
<td align="left">②</td>
<td align="left"><code>$ hexo init yassblog.xyz</code></td>
<td align="left">初始化hexo文件夹,文件夹名称任意(作者的是yassblog.xyz)</td>
</tr>
<tr>
<td align="left">③</td>
<td align="left"><code>$ cd yassblog.xyz</code></td>
<td align="left">终端cd到刚生成的hexo文件夹</td>
</tr>
<tr>
<td align="left">④</td>
<td align="left"><code>$ npm install</code></td>
<td align="left">安装npm</td>
</tr>
<tr>
<td align="left">⑤</td>
<td align="left"><code>$ hexo s</code></td>
<td align="left">开启hexo服务器</td>
</tr>
</tbody></table>
<p>此时, 浏览器中打开网址<a target="_blank" rel="noopener" href="http://localhost:4000/">http://localhost:4000</a>，能看到如下页面:<br><img src="http://images.wxyass.com/wxyass/images/blog_c2%20locsalhost.png" alt="locsalhost"><br>到这里本地hexo环境基本设置好了,可以去关联Github了<br>另外:按照2.3可以在本地初始化多个Hexo文件夹,当然创建多了也没啥用:<br><img src="http://images.wxyass.com/wxyass/images/blog_c2%20hexo%20jia.png" alt="locsalhost">  </p>
<h5 id="2-5-打开刚刚创建的本地Hexo文件夹-作者打开的的是work-Blog-yassblog-xyz"><a href="#2-5-打开刚刚创建的本地Hexo文件夹-作者打开的的是work-Blog-yassblog-xyz" class="headerlink" title="2.5 打开刚刚创建的本地Hexo文件夹(作者打开的的是work/Blog/yassblog.xyz)."></a>2.5 打开刚刚创建的本地Hexo文件夹(作者打开的的是work/Blog/yassblog.xyz).</h5><p><img src="http://images.wxyass.com/wxyass/images/blog_c3%20cd%20jia.png" alt="newrepository"></p>
<h5 id="2-6-找到-config-yml文件-用sublime-Text打开-许多文本工具都能打开这个文件-也可以用命令vim打开"><a href="#2-6-找到-config-yml文件-用sublime-Text打开-许多文本工具都能打开这个文件-也可以用命令vim打开" class="headerlink" title="2.6 找到_config.yml文件,用sublime Text打开(许多文本工具都能打开这个文件,也可以用命令vim打开)"></a>2.6 找到_config.yml文件,用sublime Text打开(许多文本工具都能打开这个文件,也可以用命令vim打开)</h5><h5 id="2-7-打开后往下滑到最后，最下面3行补充修改成如下的样子-最好手敲-不要copy-因为一些空格在复制时可能会被删除而导致后面的操作报错"><a href="#2-7-打开后往下滑到最后，最下面3行补充修改成如下的样子-最好手敲-不要copy-因为一些空格在复制时可能会被删除而导致后面的操作报错" class="headerlink" title="2.7 打开后往下滑到最后，最下面3行补充修改成如下的样子:(最好手敲,不要copy,因为一些空格在复制时可能会被删除而导致后面的操作报错)"></a>2.7 打开后往下滑到最后，最下面3行补充修改成如下的样子:(最好手敲,不要copy,因为一些空格在复制时可能会被删除而导致后面的操作报错)</h5><p>注意: type: repository: branch:这三个单词冒号后面的都有空格,实际_config.yml文件中的冒号后面都有空格<br><img src="http://images.wxyass.com/wxyass/images/blog_c3%20config2.png" alt="newrepository"><br>关于里面的repository后面要替换成自己的网址,去你的github仓库页面就能找到  </p>
<p><img src="http://images.wxyass.com/wxyass/images/170929/1aG04j0kdG.jpg" alt="mark"></p>
<h5 id="2-8-通过终端命令进入本地Hexo文件夹-作者的是-cd-work-Blog-yassblog-xyz"><a href="#2-8-通过终端命令进入本地Hexo文件夹-作者的是-cd-work-Blog-yassblog-xyz" class="headerlink" title="2.8 通过终端命令进入本地Hexo文件夹(作者的是 $ cd work/Blog/yassblog.xyz)"></a>2.8 通过终端命令进入本地Hexo文件夹(作者的是 $ cd work/Blog/yassblog.xyz)</h5><h5 id="2-9-执行生成静态页面命令-hexo-generate"><a href="#2-9-执行生成静态页面命令-hexo-generate" class="headerlink" title="2.9 执行生成静态页面命令 $ hexo generate"></a>2.9 执行生成静态页面命令 <code>$ hexo generate</code></h5><p>成功的显示界面:<br><img src="http://images.wxyass.com/wxyass/images/blog_c3%20hexo%20g.png" alt="newrepository">  </p>
<pre><code>① 若报错 
    -bash: $: command not found 
 应对执行
         报错原因: 命令打错了或未安装Node.js 或未安装git 或未安装Hexo(参考作者上面内容 去下载安装)
         安装完成后重新执行 $ hexo g
②若报错 
    ERROR Local hexo not found in ~/blog
    ERROR Try runing: &#39;npm install hexo —save’
 应对执行
         $ npm install hexo --save  
         重新执行 $ hexo g
</code></pre>
<h5 id="2-10-再执行配置命令-hexo-deploy"><a href="#2-10-再执行配置命令-hexo-deploy" class="headerlink" title="2.10 再执行配置命令 $ hexo deploy"></a>2.10 再执行配置命令 <code>$ hexo deploy</code></h5><pre><code>①若报错 
    ERROR Deployer not found: git
 应对执行
         $ npm install hexo-deployer-git --save
         重新执行 $ hexo d
②若报错 
    FATAL remote: Permission to yassblog/yassblog.github.io.git denied to ywmblog.  
应对
         打开钥匙串访问(应用程序—&gt;实用工具—&gt;钥匙串访问)
         左下方点击所有项目,右上方搜索 github.com  
         右击 github.com 后面不带括号的这条 删除该条记录
         然后重新执行 $ hexo d
</code></pre>
<p><img src="http://images.wxyass.com/wxyass/images/blog_c3%20hexo%20d%20error.png" alt="newrepository"><br><img src="http://images.wxyass.com/wxyass/images/blog_c3%20github%20ssh.png" alt="newrepository">  </p>
<pre><code>③接②若运行如下 
    INFO  Deploying: git
    INFO  Clearing .deploy_git folder...
    INFO  Copying files from public folder...
    On branch master
    nothing to commit, working tree clean
    Username for &#39;https://github.com&#39;: 
 应对执行
         Username for &#39;https://github.com&#39;:xxx            #输入xxx 你的github用户名
         Password for &#39;https://yassblog@github.com&#39;:xxxx  #输入xxxx 你的github密码 
    回车后需等待一段时间,成功显示如下
</code></pre>
<p><img src="http://images.wxyass.com/wxyass/images/blog_c3%20hexo%20d.png" alt="newrepository">  </p>
<pre><code>③若报错 
    Please tell me who you are
 应对执行
         $ git config --global user.email “108***960@qq.com”    
         $ git config --global user.name “yassblog”                    
            
         其中: 108***960@qq.com  替换你的github邮箱(注意英文&quot;&quot;标点)
               yassblog          替换你的github用户名(注意英文&quot;&quot;标点)
         重新执行 $ hexo d
</code></pre>
<h5 id="2-11-若你未关联Github，则执行-hexo-d命令时终端会提示你输入Github的用户名和密码"><a href="#2-11-若你未关联Github，则执行-hexo-d命令时终端会提示你输入Github的用户名和密码" class="headerlink" title="2.11 若你未关联Github，则执行$ hexo d命令时终端会提示你输入Github的用户名和密码"></a>2.11 若你未关联Github，则执行<code>$ hexo d</code>命令时终端会提示你输入Github的用户名和密码</h5><pre><code>Username for &#39;https://github.com&#39;:xxx              xxx是你的github用户名
Password for &#39;https://yassblog@github.com&#39;:xxxx    xxxx是你的github密码 回车后需等待一段时间  
</code></pre>
<h5 id="2-12-还可能让你输入管理员密码-mac登录密码-输入即可-若没有要求输入密码则忽略这条"><a href="#2-12-还可能让你输入管理员密码-mac登录密码-输入即可-若没有要求输入密码则忽略这条" class="headerlink" title="2.12 还可能让你输入管理员密码(mac登录密码),输入即可 (若没有要求输入密码则忽略这条)"></a>2.12 还可能让你输入管理员密码(mac登录密码),输入即可 (若没有要求输入密码则忽略这条)</h5><h5 id="2-13-命令-hexo-d执行成功后，浏览器中打开Github二级域名https-yassblog-github-io（将yassblog换成你的用户名-能看到和打开http-localhost-4000时一样的页面。"><a href="#2-13-命令-hexo-d执行成功后，浏览器中打开Github二级域名https-yassblog-github-io（将yassblog换成你的用户名-能看到和打开http-localhost-4000时一样的页面。" class="headerlink" title="2.13 命令$ hexo d执行成功后，浏览器中打开Github二级域名https://yassblog.github.io（将yassblog换成你的用户名) ,能看到和打开http://localhost:4000时一样的页面。"></a>2.13 命令<code>$ hexo d</code>执行成功后，浏览器中打开Github二级域名<a target="_blank" rel="noopener" href="https://yassblog.github.io/">https://yassblog.github.io</a>（将yassblog换成你的用户名) ,能看到和打开<a target="_blank" rel="noopener" href="http://localhost:4000/">http://localhost:4000</a>时一样的页面。</h5><blockquote>
<p>到这里Hexo关联Github就完成了,接下来就是通过在本地电脑创建博客内容,再通过Hexo上传到Github远程站点上,这样博客网站的搭建基本完成,可能有人会问我在搭建仓库时,已经关联了个人域名,现在输入个人域名为什么打不开网页了, 而只能通过Github的二级域名<a target="_blank" rel="noopener" href="https://yassblog.github.io/">https://yassblog.github.io</a> 来访问博客,请先别着急,接着往下看,后面的后面会讲到的.</p>
</blockquote>
<h4 id="三-安装主题theme"><a href="#三-安装主题theme" class="headerlink" title="三 安装主题theme"></a><a name="san"></a>三 安装主题theme</h4><blockquote>
<p>上面分别完成了仓库搭建,Hexo关联Github,接下来的三,四节可跳过的,这两节主要用来美化的.</p>
</blockquote>
<blockquote>
<p>关于Hexo主题 ,网上已经有很多好看且成熟的成品, 你也可以到<a target="_blank" rel="noopener" href="https://hexo.io/themes/">Hexo官方主题页</a>搜索.<br>作者用的是Next主题 <a target="_blank" rel="noopener" href="http://theme-next.iissnan.com/getting-started.html">Next主题安装文档</a>.  </p>
<p>安装备注: <a target="_blank" rel="noopener" href="http://blog.csdn.net/zuoziji416/article/details/53204478">http://blog.csdn.net/zuoziji416/article/details/53204478</a></p>
</blockquote>
<p>安装后,主题效果: <a target="_blank" rel="noopener" href="http://notes.iissnan.com/">next作者的博客</a> , 其中有评论,有分享,有阅读统计,非常实用.  </p>
<h4 id="四-绑定个人域名"><a href="#四-绑定个人域名" class="headerlink" title="四 绑定个人域名"></a><a name="si"></a>四 绑定个人域名</h4><blockquote>
<p>若不想通过Github的二级域名<a target="_blank" rel="noopener" href="https://yassblog.github.io/">https://yassblog.github.io</a>来访问个人博客网站,而是希望通过自己的域名(如:<a target="_blank" rel="noopener" href="http://yassblog.xyz/">http://yassblog.xyz</a>)来访问,作如下操作:   </p>
</blockquote>
<ol>
<li><p>找到之前1.8保存下来的代码(详情请看最上方第一节)  </p>
</li>
<li><p>复制CNAME文件到<code>本地Hexo文件夹/public/</code>中(若没有public文件夹,先执行下一步,再执行这步)   </p>
</li>
<li><p>终端cd到本地Hexo文件夹(作者的是 <code>$ cd work/Blog/yassblog.xyz</code>)<strong>后</strong>,依次执行下面3行命令:  </p>
<pre><code> $ hexo g
 $ hexo d
</code></pre>
</li>
<li><p>到域名商那里,去域名解析(在第一节已经做了)</p>
</li>
<li><p>现在可以用个人域名访问博客了 比如作者的博客<a target="_blank" rel="noopener" href="http://wxyass.com/">http://wxyass.com</a>  </p>
</li>
<li><p>可能执行命令去部署时,会有延迟,导致页面打不开,稍等会刷新就好了.  </p>
</li>
</ol>
<h4 id="五-创建并发布博客文章"><a href="#五-创建并发布博客文章" class="headerlink" title="五 创建并发布博客文章"></a><a name="wu"></a>五 创建并发布博客文章</h4><blockquote>
<p>通过上面几步操作,博客网站已经搭建好了, 通过重复下面操作就可以源源不断的发布博客了</p>
</blockquote>
<ol>
<li><p>打开终端,通过终端命令进入本地Hexo文件夹(作者的是 <code>$ cd work/Blog/yassblog.xyz</code>)</p>
</li>
<li><p>执行如下命令新建文章：<br><code>$ hexo new &quot;Hello Hexo&quot;</code><br>文件名称为Hello Hexo.md的文件会建在目录/yassblog.xyz/source/_posts下。此时,你可以关闭终端命令行, 用Typora软件(或者Mou或者macdown等软件)打开Hello Hexo.md进行编辑.</p>
</li>
<li><p>文章编辑完成保存后，打开终端,终端cd到yassblog.xyz文件夹下，依次执行如下命令来发布：  </p>
<pre><code> $ hexo g  
 $ hexo d  
</code></pre>
</li>
<li><p>至此，创建并发布一篇博客就完成了.<br>稍等会文章真正部署到远程站点上, 你就可以用个人域名访问博客了 </p>
</li>
</ol>
<p>PS :  </p>
<pre><code>如何全文阅读?
    在文章的适当位置添加 &lt;!--more--&gt;
如何代码高亮?
    主题配置文件_config.yml中修改
           highlight_theme: night blue
使用的图床?
    七牛云
</code></pre>
<h4 id="六-结束语"><a href="#六-结束语" class="headerlink" title="六 结束语"></a>六 结束语</h4><blockquote>
<p>博客终于搭建完成了</p>
</blockquote>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2013/01/17/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA--Mac%E4%B8%8A%E6%90%AD%E5%BB%BAHexo+Github%E5%8D%9A%E5%AE%A2/" data-id="ckvc340qe004k5dfyesr27mwv" data-title="Mac上搭建Hexo+Github博客" class="article-share-link">Share</a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" rel="tag">博客搭建</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2013/01/18/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA--Win%E4%B8%8A%E6%90%AD%E5%BB%BAHexo+Github%E5%8D%9A%E5%AE%A2/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          Win上搭建Hexo+Github博客
        
      </div>
    </a>
  
  
    <a href="/2012/05/16/MD%E8%AF%AD%E6%B3%95/MD%E8%AF%AD%E6%B3%95--MacDown%E8%AF%AD%E6%B3%95/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">MacDown语法</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Activity/">Activity</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Android-Studio%E4%BB%8B%E7%BB%8D/">Android Studio介绍</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Android%E5%9F%BA%E7%A1%80/">Android基础</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Android%E6%A8%A1%E6%9D%BF/">Android模板</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/BaseRecyclerViewAdapterHelper/">BaseRecyclerViewAdapterHelper</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Bug%E9%97%AE%E9%A2%98/">Bug问题</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Button/">Button</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/EditText/">EditText</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Fragment/">Fragment</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Gradle/">Gradle</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/ListView/">ListView</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/MD%E8%AF%AD%E6%B3%95/">MD语法</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/MyEclipse/">MyEclipse</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/OSS/">OSS</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/RecyclerView/">RecyclerView</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/SQL%E5%9F%BA%E7%A1%80/">SQL基础</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/UI%E6%8E%A7%E4%BB%B6/">UI控件</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/View/">View</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/ViewPager/">ViewPager</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/View%E7%AF%87/">View篇</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/as%E6%8A%A5%E9%94%99/">as报错</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/jar%E5%8C%85/">jar包</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/targetSdkVersion/">targetSdkVersion</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E4%B8%83%E7%89%9B%E4%BA%91/">七牛云</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E4%BA%8C%E7%BB%B4%E7%A0%81/">二维码</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%88%A0%E9%99%A4%E5%9B%BE%E7%89%87%E7%BC%93%E5%AD%98/">删除图片缓存</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%8D%87%E7%BA%A7%E6%8A%A5%E9%94%99/">升级报错</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/">博客搭建</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%8E%BB%E6%8E%89v7%E5%8C%85/">去掉v7包</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%9B%BE%E7%89%87%E5%A4%84%E7%90%86/">图片处理</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%A4%9A%E5%AA%92%E4%BD%93/">多媒体</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%AE%9A%E5%88%B6%E7%B1%BB/">定制类</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%B0%8F%E7%B1%B3%E6%89%8B%E6%9C%BA/">小米手机</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%B9%BF%E6%92%AD%E6%9C%BA%E5%88%B6/">广播机制</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%BE%AE%E5%8D%9A%E5%88%86%E4%BA%AB/">微博分享</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%89%93%E5%8C%85APK%E6%8A%A5%E9%94%99/">打包APK报错</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%8C%81%E4%B9%85%E5%8C%96%E5%AD%98%E5%82%A8/">持久化存储</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%97%B6%E9%97%B4%E9%80%89%E6%8B%A9DatePicker/">时间选择DatePicker</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%9C%8D%E5%8A%A1/">服务</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%9D%83%E9%99%90/">权限</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%9E%84%E5%BB%BA%E5%9F%BA%E7%B1%BB/">构建基类</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%B5%8B%E8%AF%95/">测试</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%9B%91%E5%90%AC%E9%94%81%E5%B1%8F/">监听锁屏</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%B3%BB%E7%BB%9F%E9%A1%B5%E9%9D%A2%E8%B7%B3%E8%BD%AC/">系统页面跳转</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E8%89%BA%E6%9C%AF%E6%8E%A2%E7%B4%A2/">艺术探索</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E8%AF%BB%E5%8F%96txt/">读取txt</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E8%BE%93%E5%85%A5%E6%B3%95/">输入法</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E9%9F%B3%E4%B9%90%E6%92%AD%E6%94%BE%E5%99%A8/">音乐播放器</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E9%BB%91%E9%A9%AC%E5%8D%AB%E5%A3%AB/">黑马卫士</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Activity/" rel="tag">Activity</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Android-Studio/" rel="tag">Android Studio</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Android-Studio%E4%BB%8B%E7%BB%8D/" rel="tag">Android Studio介绍</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Android%E5%9F%BA%E7%A1%80/" rel="tag">Android基础</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Android%E6%A8%A1%E6%9D%BF/" rel="tag">Android模板</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/BaseRecyclerViewAdapterHelper/" rel="tag">BaseRecyclerViewAdapterHelper</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Bug%E9%97%AE%E9%A2%98/" rel="tag">Bug问题</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Button/" rel="tag">Button</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/EditText/" rel="tag">EditText</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Fragment/" rel="tag">Fragment</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Gradle/" rel="tag">Gradle</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ListView/" rel="tag">ListView</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/MD%E8%AF%AD%E6%B3%95/" rel="tag">MD语法</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/MyEclipse/" rel="tag">MyEclipse</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/OSS/" rel="tag">OSS</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/RecyclerView/" rel="tag">RecyclerView</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/SQL%E5%9F%BA%E7%A1%80/" rel="tag">SQL基础</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/UI%E6%8E%A7%E4%BB%B6/" rel="tag">UI控件</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/View/" rel="tag">View</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ViewPager/" rel="tag">ViewPager</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/View%E7%AF%87/" rel="tag">View篇</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/as%E6%8A%A5%E9%94%99/" rel="tag">as报错</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/jar%E5%8C%85/" rel="tag">jar包</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/targetSdkVersion/" rel="tag">targetSdkVersion</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E4%B8%83%E7%89%9B%E4%BA%91/" rel="tag">七牛云</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%8D%87%E7%BA%A7%E6%8A%A5%E9%94%99/" rel="tag">升级报错</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" rel="tag">博客搭建</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%9B%BE%E7%89%87%E5%A4%84%E7%90%86/" rel="tag">图片处理</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%A4%9A%E5%AA%92%E4%BD%93/" rel="tag">多媒体</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%B7%A5%E4%BD%9C%E9%97%AE%E9%A2%98/" rel="tag">工作问题</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%B9%BF%E6%92%AD%E6%9C%BA%E5%88%B6/" rel="tag">广播机制</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%BA%94%E7%94%A8%E8%AF%A6%E6%83%85/" rel="tag">应用详情</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%BE%AE%E5%8D%9A%E5%88%86%E4%BA%AB/" rel="tag">微博分享</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%8C%81%E4%B9%85%E5%8C%96%E5%AD%98%E5%82%A8/" rel="tag">持久化存储</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%9C%8D%E5%8A%A1/" rel="tag">服务</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%9D%83%E9%99%90/" rel="tag">权限</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%9E%84%E5%BB%BA%E5%9F%BA%E7%B1%BB/" rel="tag">构建基类</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E7%94%9F%E6%B4%BB/" rel="tag">生活</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E7%BB%83%E6%89%8B/" rel="tag">练手</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E8%89%BA%E6%9C%AF%E6%8E%A2%E7%B4%A2/" rel="tag">艺术探索</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E8%BE%93%E5%85%A5%E6%B3%95/" rel="tag">输入法</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E9%AB%98%E7%BA%A7%E6%8A%80%E5%B7%A7/" rel="tag">高级技巧</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/Activity/" style="font-size: 12.5px;">Activity</a> <a href="/tags/Android-Studio/" style="font-size: 10px;">Android Studio</a> <a href="/tags/Android-Studio%E4%BB%8B%E7%BB%8D/" style="font-size: 12.5px;">Android Studio介绍</a> <a href="/tags/Android%E5%9F%BA%E7%A1%80/" style="font-size: 20px;">Android基础</a> <a href="/tags/Android%E6%A8%A1%E6%9D%BF/" style="font-size: 10px;">Android模板</a> <a href="/tags/BaseRecyclerViewAdapterHelper/" style="font-size: 10px;">BaseRecyclerViewAdapterHelper</a> <a href="/tags/Bug%E9%97%AE%E9%A2%98/" style="font-size: 10px;">Bug问题</a> <a href="/tags/Button/" style="font-size: 10px;">Button</a> <a href="/tags/EditText/" style="font-size: 10px;">EditText</a> <a href="/tags/Fragment/" style="font-size: 18.75px;">Fragment</a> <a href="/tags/Gradle/" style="font-size: 10px;">Gradle</a> <a href="/tags/ListView/" style="font-size: 17.5px;">ListView</a> <a href="/tags/MD%E8%AF%AD%E6%B3%95/" style="font-size: 11.25px;">MD语法</a> <a href="/tags/MyEclipse/" style="font-size: 13.75px;">MyEclipse</a> <a href="/tags/OSS/" style="font-size: 11.25px;">OSS</a> <a href="/tags/RecyclerView/" style="font-size: 12.5px;">RecyclerView</a> <a href="/tags/SQL%E5%9F%BA%E7%A1%80/" style="font-size: 10px;">SQL基础</a> <a href="/tags/UI%E6%8E%A7%E4%BB%B6/" style="font-size: 15px;">UI控件</a> <a href="/tags/View/" style="font-size: 10px;">View</a> <a href="/tags/ViewPager/" style="font-size: 10px;">ViewPager</a> <a href="/tags/View%E7%AF%87/" style="font-size: 10px;">View篇</a> <a href="/tags/as%E6%8A%A5%E9%94%99/" style="font-size: 10px;">as报错</a> <a href="/tags/jar%E5%8C%85/" style="font-size: 10px;">jar包</a> <a href="/tags/targetSdkVersion/" style="font-size: 10px;">targetSdkVersion</a> <a href="/tags/%E4%B8%83%E7%89%9B%E4%BA%91/" style="font-size: 10px;">七牛云</a> <a href="/tags/%E5%8D%87%E7%BA%A7%E6%8A%A5%E9%94%99/" style="font-size: 10px;">升级报错</a> <a href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" style="font-size: 12.5px;">博客搭建</a> <a href="/tags/%E5%9B%BE%E7%89%87%E5%A4%84%E7%90%86/" style="font-size: 15px;">图片处理</a> <a href="/tags/%E5%A4%9A%E5%AA%92%E4%BD%93/" style="font-size: 12.5px;">多媒体</a> <a href="/tags/%E5%B7%A5%E4%BD%9C%E9%97%AE%E9%A2%98/" style="font-size: 16.25px;">工作问题</a> <a href="/tags/%E5%B9%BF%E6%92%AD%E6%9C%BA%E5%88%B6/" style="font-size: 12.5px;">广播机制</a> <a href="/tags/%E5%BA%94%E7%94%A8%E8%AF%A6%E6%83%85/" style="font-size: 10px;">应用详情</a> <a href="/tags/%E5%BE%AE%E5%8D%9A%E5%88%86%E4%BA%AB/" style="font-size: 10px;">微博分享</a> <a href="/tags/%E6%8C%81%E4%B9%85%E5%8C%96%E5%AD%98%E5%82%A8/" style="font-size: 13.75px;">持久化存储</a> <a href="/tags/%E6%9C%8D%E5%8A%A1/" style="font-size: 12.5px;">服务</a> <a href="/tags/%E6%9D%83%E9%99%90/" style="font-size: 10px;">权限</a> <a href="/tags/%E6%9E%84%E5%BB%BA%E5%9F%BA%E7%B1%BB/" style="font-size: 10px;">构建基类</a> <a href="/tags/%E7%94%9F%E6%B4%BB/" style="font-size: 11.25px;">生活</a> <a href="/tags/%E7%BB%83%E6%89%8B/" style="font-size: 11.25px;">练手</a> <a href="/tags/%E8%89%BA%E6%9C%AF%E6%8E%A2%E7%B4%A2/" style="font-size: 10px;">艺术探索</a> <a href="/tags/%E8%BE%93%E5%85%A5%E6%B3%95/" style="font-size: 10px;">输入法</a> <a href="/tags/%E9%AB%98%E7%BA%A7%E6%8A%80%E5%B7%A7/" style="font-size: 11.25px;">高级技巧</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/">November 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/">October 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/">September 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/">August 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/07/">July 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/06/">June 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/">April 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/">March 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/02/">February 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/09/">September 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/10/">October 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/04/">April 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/01/">January 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/05/">May 2012</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2017/11/03/Android%20Studio/Github%E4%B8%8A%E6%8F%90%E4%BA%A4%E4%BB%A3%E7%A0%81/">Github上提交代码</a>
          </li>
        
          <li>
            <a href="/2017/10/31/RecyclerView/BaseRecyclerViewAdapterHelper%E5%BA%93%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95/">BaseRecyclerViewAdapterHelper库的基本使用方法</a>
          </li>
        
          <li>
            <a href="/2017/10/31/%E5%9B%BE%E7%89%87%E5%A4%84%E7%90%86/%E4%B8%83%E7%89%9B%E4%BA%91--%E4%B8%83%E7%89%9B%E4%BA%91%E5%BF%AB%E9%80%9F%E4%B8%8A%E4%BC%A0%E5%9B%BE%E7%89%87/">七牛云快速上传图片</a>
          </li>
        
          <li>
            <a href="/2017/10/31/Gradle/Gradle--Gradle%E6%B7%BB%E5%8A%A0%E7%AC%AC%E4%B8%89%E6%96%B9%E5%BA%93%E6%8A%A5%E5%BC%82%E5%B8%B8/">Gradle添加第三方库报异常</a>
          </li>
        
          <li>
            <a href="/2017/10/26/Android%20Studio/%E8%A7%A3%E5%86%B3Android-Studio-Gradle-%E9%94%99%E8%AF%AF-%E7%BC%96%E7%A0%81GBK%E7%9A%84%E4%B8%8D%E5%8F%AF%E6%98%A0%E5%B0%84%E5%AD%97%E7%AC%A6/">解决Android Studio Gradle 错误 编码GBK的不可映射字符</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2021 wxyass<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/js/jquery-3.4.1.min.js"></script>



  
<script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/script.js"></script>





  </div>
</body>
</html>